package com.ruoyi.withdraw.mapper;

import java.util.List;
import com.ruoyi.withdraw.domain.withdraw;
import feign.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 提现申请Mapper接口
 * 
 * @author wuxiao
 * @date 2024-12-19
 */
public interface withdrawMapper 
{
    /**
     * 查询提现申请
     * 
     * @param applyId 提现申请主键
     * @return 提现申请
     */
    public withdraw selectwithdrawByApplyId(Long applyId);

    /**
     * 查询提现申请列表
     * 
     * @param withdraw 提现申请
     * @return 提现申请集合
     */
    public List<withdraw> selectwithdrawList(withdraw withdraw);

    /**
     * 新增提现申请
     * 
     * @param withdraw 提现申请
     * @return 结果
     */
    public int insertwithdraw(withdraw withdraw);

    /**
     * 修改提现申请
     * 
     * @param withdraw 提现申请
     * @return 结果
     */
    public int updatewithdraw(withdraw withdraw);

    /**
     * 删除提现申请
     * 
     * @param applyId 提现申请主键
     * @return 结果
     */
    public int deletewithdrawByApplyId(Long applyId);

    /**
     * 批量删除提现申请
     * 
     * @param applyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletewithdrawByApplyIds(Long[] applyIds);

    @Update("update tb_finance_apply set audit_status = '已通过' where apply_id = #{apply_id}")
    int meanswithdrawByApplyId(@Param("applyId") Long applyId);
}
